<template>
  <view>
    <view class="special-work-list__item">
      <text class="special-work-list__label">吊装地点：</text>
      <text class="special-work-list__value">{{ detail.workLocation }}</text>
    </view>
    <view class="special-work-list__item">
      <text class="special-work-list__label">吊装工具名称：</text>
      <text class="special-work-list__value">{{ detail.toolName }}</text>
    </view>
    <view class="special-work-list__item">
      <text class="special-work-list__label">吊装作业级别：</text>
      <text class="special-work-list__value">{{ detail.workLevelLabel }}</text>
    </view>
    <view class="special-work-list__item">
      <text class="special-work-list__label">起吊重物质量(t)：</text>
      <text class="special-work-list__value">{{ detail.weight }}</text>
    </view>
    <view class="special-work-list__item">
      <text class="special-work-list__label">实施时间：</text>
      <text class="special-work-list__value">
        {{ actualDateLabel }}
      </text>
    </view>
    <view class="special-work-list__item flex-col">
      <text class="special-work-list__label">吊装人员信息</text>
      <view class="flex-table mb-20">
        <view class="flex-table__tr" v-for="(item, index) in detail.workCertificates" :key="index">
          <view class="flex-table__td" style="width: 200rpx">{{ item.name }}</view>
          <view class="flex-table__td flex-auto">{{ item.qualityNumber }}</view>
        </view>
      </view>
    </view>
    <view class="special-work-list__item flex-col">
      <text class="special-work-list__label">吊装指挥人员信息</text>
      <view class="flex-table mb-20">
        <view class="flex-table__tr" v-for="(item, index) in detail.workPrincipalCertificates" :key="index">
          <view class="flex-table__td" style="width: 200rpx">{{ item.name }}</view>
          <view class="flex-table__td flex-auto">{{ item.qualityNumber }}</view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
import { staticUrl } from '@/config.js'
export default {
  props: {
    detail: {
      type: Object,
      default: () => ({})
    },
    ticket: {
      type: Object,
      default: () => ({})
    },
    inspect: {
      type: Object,
      default: () => ({})
    },
    actualDateLabel: String
  },
  data() {
    return {
      staticUrl
    }
  }
}
</script>

<style scoped lang="scss">
@import '../style/style.scss';
</style>
